<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/zhuyunlogin.css" />
	</head>

	<body id="login_body">
		<div class="clear_div"></div>
		<div class="login_header">

			<div class="login_logo">
				<img src="img/zhuyun/logo.jpg" />
			</div>
			<div class="login_tab-page">
				<p class="login_tab-page_tips">宝，赶快注册吧</p>
				<a href="/reg/01.html" class="login_btn">注册</a>
			</div>
		</div>
		<div class="login_main">
			<div class="login_clear w960">
				<!--左边的图-->
				<a target="_blank" class="login_banner"><img src="img/zhuyun/item_pictrue1.jpg" style="margin-top: 50px;" /></a>
				<!--右边的登陆框-->
				<div class="login_box">
					<!--右边登陆框2-->
					<div class="login_box_card">
						<!--第一个输入框-->
						<div class="login_input-group">
							<input type="text" id="phone" placeholder="请输入用户名" class="login_input_tel" />
							<p id="phoneError" class="login_tips"></p>
						</div>
						<!--第二个输入框-->
						<div class="login_input-group">
							<input type="password" id="pwd" placeholder="请输入密码" class="login_input_key" />
							<p id="pwdError" class="login_tips"></p>
						</div>
						<!--第三个输入框-->
						<div class="login_input-group">
							<input type="text" id="code" placeholder="请输入验证码" class="login_input_key" />
							<p id="pwdError" class="login_tips"></p>
						</div>
						<!--登陆按钮-->
						<div class="login_input-group">
							<a class="login_main-button">登录</a>
						</div>

					</div>
					<p class="login_message">公共场所不建议自动登录，以防账号丢失</p>
				</div>
			</div>
		</div>
		<div class="login_footer">
			<div class="login_clear_div"></div>
			<p class="login_p">
				<a href="#">关于我们</a>
				<span class="bar">|</span>
				<a href="#">联系我们</a>
				<span class="bar">|</span>
				<a href="#">人才招聘</a>
				<span class="bar">|</span>
				<a href="#">广告服务</a>
				<span class="bar">|</span>
				<a href="#">友情链接</a>
				<span class="bar">|</span>
				<a href="#">销售联盟</a>
				<span class="bar">|</span>
				<a href="#">小迪社区</a>
				<span class="bar">|</span>
				<a href="#">心服务</a>
				<span class="bar">|</span>
				<a href="#">法律申明</a>
				<span class="bar">|</span>
				<a href="#">用户体验提升计划</a>
			</p>
			<p class="login_copyright">Powered by DiXinTong©2001-2013 京ICP备11010605号 © 2001-2013 DiXinTong Inc.</p>
		</div>
		<script src="js/jquery-1.11.0.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/av-min-2.1.2.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function() {
				var APP_ID = 'WGpViiVcguLhSabE0AHEbHX4-gzGzoHsz';
				var APP_KEY = 'LWjXkUknhTPjaYnyXs6CVgrC';
				AV.init({
					appId: APP_ID,
					appKey: APP_KEY
				});
			})
			//sdk初始化

			function login() {
				AV.User.logIn($('#phone').val(), $('#pwd').val()).then(function(loginedUser) {
					console.log(location.search);
					var href = getUrlItem(location.search, "RetUrl");
					location.href = href ? href : "index.html";
				}, function(error) {
					alert(JSON.stringify(error));
				});
			}
			//登录操作

			function getUrlItem(url, name) {
				start = url.indexOf(name + "=")
				if(start != -1) {
					start = start + name.length + 1
					c_end = url.indexOf("&", start)
					if(c_end == -1) c_end = url.length
					return unescape(url.substring(start, c_end))
				}
				return '';
			}
           //处理返回到url
           
			$(".login_main-button").click(function() {
				login()
			})
		</script>
	</body>

</html>